package com.dog.basics.bean.dto.admin.common;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CommonProblemEditDto {

	@ApiModelProperty(value = "id", dataType = "Long",required = true, example = "")
	private Long id;
	/**
	 * 问题分类标识
	 */
	@ApiModelProperty(value = "问题分类标识", dataType = "Long",required = true, example = "")
	@NotNull(message = "问题分类标识不能为空")
	@TableField("problem_class_id")
	private Long problemClassId;

	/**
	 * 常见问题标题
	 */
	@ApiModelProperty(value = "常见问题标题", dataType = "String",required = true, example = "")
	@NotBlank(message = "常见问题标题不能为空")
	private String title;

	/**
	 * 常见问题简述
	 */
	@ApiModelProperty(value = "常见问题简述", dataType = "String",required = true, example = "")
	@NotBlank(message = "常见问题简述不能为空")
	private String sketch;

	/**
	 * 常见问题内容
	 */
	@ApiModelProperty(value = "常见问题内容", dataType = "String",required = true, example = "")
	@NotBlank(message = "常见问题内容不能为空")
	@TableField("content_info")
	private String contentInfo;

	@NotNull(message = "问题类型不能为空")
	@ApiModelProperty(value = "问题类型 0 医生1 妈妈", dataType = "int",required = false, example = "")
	private Integer problemType;
}
